<template>
    <div id="templ">
        <div class="descimg">
            <h4 v-text="info.title"></h4>
            <p class="line"></p>
            <p v-html="info.content"></p>
        </div>
    </div>
</template>
<script>
import common from '../../kits/common';
import { Toast } from 'mint-ui';
export default {
    data(){
        return{
            id:0,
            info:{}
        }
    },
    created(){
        this.id =this.$route.params.id;
        this.getinfo();
    },
    methods:{
        getinfo(){
            var url =common.apidomain +"/api/goods/getdesc/"+this.id;
            this.$http.get(url).then(function (response) {
                var body =response.body;
                if(body.status !=0){
                    Toast(body.message);
                    return;
                }
                this.info =body.message[0];
            })
        }
    }
}
</script>
<style esoped>
.descimg{
    padding: 5px;
}
 .descimg h4{
     color:#0094ff;
 }
 .descimg .line{
    height: 1px;
    width: 100%;
    border-top:1px solid rgba(0,0,0,0.4);
}
</style>